<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@include file="/tf/taglibs.jsp" %>

<script type="text/javascript">
<!--
	function allPrice () {
		var price = $('#price').val();
		var all = $('#all').val();
		if (all!=undefined&&all.length>0) {
			$('#allp').val(all*price);
		}
	}
//-->
</script>
<style>
<!--

-->
</style>

<!-- 货名、包装材质、数量、重量(吨)、体积(m3)、要求到达时间、备注 显示：总价 -->

	<h1>物流供应</h1>
	<p></p>
	<input name="insert_memberId" value="${param.memberId }" type="hidden"/>
	<input name="insert_lsinfoId" value="${param.lsinfoId }" type="hidden"/>
	
	
	<table>
		<tr>
			<td class="td_l">货名：</td><td><input name="insert_cargoName" label="货名" required="required"></td>
		</tr>
		<tr>
			<td class="td_l">单价：</td>
			<td><input value="${param.price }" readonly="readonly"/>
				<input id="price" name="insert_tradePrice" type="hidden" value="${param.price }"></td>
		</tr>
		<tr>
			<td class="td_l">包装材质：</td><td><input name="insert_packagingMaterial" label="包装材质" required="required"/></td>
		</tr>
		<tr>
			<td class="td_l">数量：</td><td><input name="insert_tradeNum" id="all"  
				onblur="allPrice()" 
				onkeyup="this.value=this.value.replace(/\D/g,'')"
				onafterpaste="this.value=this.value.replace(/\D/g,'')" label="数量" required="required">
			
			</td>
		</tr>
		<tr>
			<td class="td_l">重量：</td><td><input name="insert_cargoWeight" onkeyup="this.value=this.value.replace(/\D/g,'')" label="重量" required="required">吨</td>
		</tr>
		<tr>
			<td class="td_l">体积：</td><td><input name="insert_cargoVolume" onkeyup="this.value=this.value.replace(/\D/g,'')" label="体积" required="required">立方米</td>
		</tr>
		<tr>
			<td class="td_l">要求到达时间：</td><td><input name="insert_arriveDate" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',skin:'whyGreen'})" label="要求到达时间" required="required" readonly="readonly"/></td>
		</tr>
		
		<tr>
			<td class="td_l">备注：</td><td><input name="insert_remark" /></td>
		</tr>
		<tr>
			<td class="td_l">总价：</td><td><input id="allp" name="insert_totalAmount" readonly="readonly"/></td>
		</tr>
		
	</table>


